//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
// 
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU Lesser General Public License for more details.
// 
// You should have received a copy of the GNU Lesser General Public License
// along with this program.  If not, see http://www.gnu.org/licenses/.
// 

package org.mixim.examples.multiFreq;

import org.mixim.base.connectionManager.ConnectionManager;
import org.mixim.base.modules.BaseNetwork;

network MultiFreq extends BaseNetwork
{
    parameters:
        //int numGSMHosts; // total number of weak hosts in the network
        //int numISMHosts; // total number of strong hosts in the network
        int numMultiFreqHosts;
        
        @display("bgb=$playgroundSizeX,$playgroundSizeY,white,,;bgp=10,50");
    submodules:
        ISMChannel: ConnectionManager {
            parameters:
                @display("p=121,0;i=abstract/multicast;is=s");
        }
        //GSMNode[numGSMHosts]: PhyMacHostMultiNic {
        //    parameters:
        //        numHosts = numGSMHosts;
        //        @display("p=70,91;b=42,42,rect,red;i=device/palm");
        //        
        //}
        MultiFreqNode[numMultiFreqHosts]: PhyMacHostMultiNic {
            parameters:
                numHosts = numMultiFreqHosts;
                @display("p=202,91;b=42,42,rect,green;i=device/wifilaptop");
                
        }
    connections allowunconnected:
        // all connections and gates are to be generated dynamically
}
